k5
Builder construct for the K5-compose. Can be called like, main() = k5 {...} All the params passed are applied to a Window component
Parameters
The initial size of the window.
The title of the window. The title is displayed in the windows's native border.
The icon for the window displayed on the system taskbar.
Removes the native window border if set to true. The default value is false.
Makes the window resizable if is set to true and unresizable if is set to false. The default value is true.
Can window receive focus
Should window always be on top of another windows
This callback is invoked when the user interacts with the hardware keyboard. It gives ancestors of a focused component the chance to intercept a KeyEvent. Return true to stop propagation of this event. If you return false, the key event will be sent to this onPreviewKeyEvent's child. If none of the children consume the event, it will be sent back up to the root using the onKeyEvent callback.
This callback is invoked when the user interacts with the hardware keyboard. While implementing this callback, return true to stop propagation of this event. If you return false, the key event will be sent to this onKeyEvent's parent.